package com.java.second_goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 地址对象 tb_address
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_address")
public class Address extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 地址ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /** 用户ID */
    private Integer userId;

    /** 收货人姓名 */
    private String name;

    /** 收货人电话 */
    private String phone;

    /** 省份 */
    private String province;

    /** 城市 */
    private String city;

    /** 区/县 */
    private String district;

    /** 详细地址 */
    private String detail;

    /** 是否默认地址 */
    private Boolean isDefault;
}